package cn.scxy.bookcity.service.impl;

import cn.scxy.bookcity.mapper.AdminUserMapper;
import cn.scxy.bookcity.pojo.entity.Admin;
import cn.scxy.bookcity.pojo.entity.User;
import cn.scxy.bookcity.service.IAdminUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class AdminUserImpl implements IAdminUserService {
    @Autowired
    private AdminUserMapper mapper;
    @Override
    public  List<User>  selectUserList() {
       List<User> list=mapper.selectUserList();
        return list;
    }

    @Override
    public void delete(Integer id) {
        mapper.delete(id);
    }

    @Override
    public int selectGoodsCount() {
        int i=mapper.selectGoodsCount();
        return i;
    }

    @Override
    public List<Admin> adminlist() {
        List<Admin> a=mapper.adminlist();
        return a;
    }
}
